package xcmg.device.dao.mapper.delivery;


import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import xcmg.device.dao.entity.delivery.ReceiptInDetailDO;

import java.util.List;

@Mapper
public interface ReceiptInDetailMapper {
    int deleteByPrimaryKey(String id);

    int insert(ReceiptInDetailDO record);

    ReceiptInDetailDO selectByPrimaryKey(String id);

    int update(ReceiptInDetailDO record);

    List<ReceiptInDetailDO> listByMainId(@Param("mainId") String mainId);

    ReceiptInDetailDO findByMainIdAndMaterialsNo(@Param("mainId") String mainId, @Param("materialsNo") String materialsNo);

    List<ReceiptInDetailDO> findListByMainIdAndMaterialsNo(@Param("mainId") String mainId, @Param("materialsNo") String materialsNo);

    int updateStatus(@Param("billId") String billId, @Param("materialsNo") String materialsNo, @Param("status") Integer status);
}